package tzp.taobao.autosale.util;

import tzp.taobao.autosale.ui.MainFrame;

public class Context {

	private static Context instance = new Context();
	
	private Context(){}
	
	private String username;
	
	private String password;
	
	private String sessionid = String.valueOf(new java.util.Random().nextDouble()).replaceAll("\\.", "");
	
	public String getSessionid() {
		return sessionid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public static Context getInstance(){
		return instance;
	}
	
	private MainFrame mainFrame;

	public MainFrame getMainFrame() {
		return mainFrame;
	}

	public void setMainFrame(MainFrame mainFrame) {
		this.mainFrame = mainFrame;
	}
	
	
}
